﻿using System;
using System.Windows.Forms;

using Spencen.Mobile.UI.Easings;
using Spencen.Mobile.UI.Navigation;

using Demo.Presenters;

namespace Demo
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();

            var navigator = new TransitionNavigator( hostCanvas );
            navigator.TransitionDuration = new TimeSpan( 0, 0, 0, 0, 750 );
            navigator.TransitionEasing = new ElasticEasing();

            var welcomePresenter = new WelcomePresenter( navigator );
            navigator.Forward( welcomePresenter.CreateView( hostCanvas ) );
        }
    }
}